The average loss per example when L1 loss is used. Calculate MAE as follows:1
- Calculate the L1 loss for a batch.
- Divide the L1 loss by the number of examples in the batch.
MAE=n1i=0∑n∣yi−y^i∣
where:
- n is the number of examples.
- y is the actual value of the label.
- y^ is the value that the model predicts for y.
See also
Footnotes
-
developers.google.com/machine-learning/glossary#MAE